Installing and Updating Versions
Before defaulting to NPM or Yarn, consider using PNPM.
NPM

NPM Download
NPM Updates
npm --version- Check the current installed version of npmnpm install -g npm- Install globally the latest stable version of npm
Note - for any issues with the above, follow the 'Upgrade with npm-windows-upgrade' part of the this link
Yarn

Yarn Download
npm install --global yarn- (https://classic.yarnpkg.com/lang/en/docs/install/#windows-stable)
Yarn Updates
yarn --version- Check the current installed version of yarnnpm install -g yarn@v1.22.19- Install globally a specific version of yarn (check Yarn Windows Releases for the latest version)
PNPM Commands

- Link to all documentation
- Introduction article
Node

node --version- Check the current installed version of nodenvm ls- Find out which versions of Node.js you may have installed and which one of those you're currently usingnvm ls available- List all versions of Node.js available for installationnvm install 8.1.0- Install a specific version of Node (check node.js for the latest version)
Note - you can also use
npm install -g node@v16.18- Install globally a specific version of node
nvm use 4.2- Switch between the installed versions on your machine- Re-run
node --versionto check the new version is being used
Note - if after using
nvm use, you find yourself still using the old version, you can fix this by deleting theC:\Program Files\nodejsfolder and then runningnvm useagain (ref 3)
References
- How Do I Update NodeJS
- NVM Windows Releases - NVM latest release - use "nvm-setup.exe"
- nvm use does not switch node versions